<extend name="Public/common" />
<block name="body">
<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <h3>渠道管理</h3>
      <ul class="tab-base">
        <li><a href="JavaScript:void(0);" class="current"><span>列表</span></a></li>
        <li><a href="{:U('add')}" ><span>新增</span></a></li>
      </ul>
    </div>
  </div>
  <div class="fixed-empty"></div>
  <form method="get" action="{:U()}" name="form_search">
    <table class="tb-type1 noborder search">
      <tbody>
        <tr>
          <th><label for="keyword">关键字</label></th>
          <td><input type="text" value="{$keyword}" name="keyword" id="keyword" class="txt"></td>
          <td>
          	<a href="javascript:document.form_search.submit();" class="btn-search " title="查询">&nbsp;</a>
            <notempty name="keyword">
            <a href="{:U('index')}" class="btns " title="撤销检索"><span>撤销检索</span></a>
            </notempty>
          </td>
        </tr>
      </tbody>
    </table>
  </form>
<table class="table tb-type2" id="prompt">
	<tbody>
		<tr class="space odd">
			<th colspan="12"><div class="title"><h5>操作提示</h5><span class="arrow"></span></div></th>
		</tr>
		<tr>
			<td><ul>
				<li>渠道列表管理 永久二维码时最大值为100000（目前参数只支持1--100000）</li>
				</ul></td>
		</tr>
	</tbody>
</table>
	<form method="post" id="form1">
    <table class="table tb-type2">
      <thead>
        <tr class="thead">
          <th class="w24 align-center"></th>
          <th>渠道二维码</th>
          <th>渠道名称</th>
          <th class="w108 align-center">添加时间</th>
          <th class="w200 align-center">操作</th>
        </tr>
      </thead>
      <tbody>
        <notempty name="list">
        <volist name="list" id="vo">
        <tr class="hover">
          <td><input type="checkbox" name='id[]' value="{$vo['channel_id']}" class="checkitem"></td>
          <td class="w60 picture"><div class="size-56x56"><span class="thumb size-56x56"><i></i><img src="https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket={$vo['ticket']}" onload="javascript:DrawImage(this,56,56);"/></span></div></td>
          <td>{$vo['channel_name']}</td>
          <td class="align-center">{$vo['create_time']|time_format}</td>
          <td class="align-center">
          	<a href="{:U('edit?id='.$vo['channel_id'])}">编辑</a> |
          	<a href="javascript:if(confirm('您确定要删除吗'))window.location = '{:U('delete?id='.$vo['channel_id'])}';">删除</a>
          </td>
        </tr>
        </volist>
        <else />
        <tr class="no_data">
          <td colspan="10">没有符合条件的记录</td>
        </tr>
        </notempty>
      </tbody>
      <tfoot>
        <tr class="tfoot">
        <notempty name="page">
          <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
          <td colspan="16"><label for="checkallBottom">全选</label>
            &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn" onclick="if(confirm('您确定要删除吗?')){$('#form1').submit();}"><span>删除</span></a>
            <div class="pagination"> {$page} </div></td>
         <else />  
          <td colspan="16"></td>
         </notempty>
        </tr>
      </tfoot>
    </table>
  </form>
</div>
</block>